package utils.global.security;


import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Import;
import utils.global.UtilsConfig;
import utils.global.utils.AESUtils;


@ConditionalOnProperty(
        value = "utils.security.enabled",
        havingValue = "true"
)
@EnableConfigurationProperties(SecurtiyProperties.class)
@Import({SecurityAop.class, AESUtils.class})
@Slf4j
public class SecurityConfig {
    public SecurityConfig() {
        log.info(String.format(UtilsConfig.printInfo, "security"));
    }
}
